<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets" >


		<h:form id="editTacheFormId">
			<table width="505" border="1" align="center">
				<tr>
					<td width="495">
						<h1>Activite</h1>
						<h2 class="tit">Creation d'une tache</h2>


						<h5>Nom de la tache :</h5> <p:inputText
							value="#{activiteManagedBean.selectedTask.taskName}" />

						<h5>Etiquette :</h5> <p:inputText
							value="#{activiteManagedBean.selectedTask.etiquette}" />

						<h5>Numero :</h5> <p:inputText
							value="#{activiteManagedBean.selectedTask.numero}" />

						<h5>Couleur :</h5> <p:colorPicker
							widgetVar="editTaslcolorPickerWv" id="editTaskcolorPickerId"
							value="#{activiteManagedBean.selectedTask.couleur}" />
						<h5>Type de planification :</h5> <p:selectOneRadio
							styleClass="nostyle" id="editTaskPlannifTypId"
							value="#{activiteManagedBean.selectedPlannificationTypeString}">
							<p:ajax event="change"
								listener="#{activiteManagedBean.onSelectPlannificationType}"
								update="automaticPlannifPanelId,checkListPlannifPanelId" />
							<f:selectItem itemLabel="Manuelle" itemValue="1" />
							<f:selectItem itemLabel="Automatique" itemValue="2" />
							<f:selectItem itemLabel="Check-List" itemValue="3" />
						</p:selectOneRadio>


					</td>
				</tr>
				<tr>
									<td><ui:include src="automaticPlannification.xhtml" /> <ui:include
											src="checkListPlannification.xhtml" /></td>
				</tr>
			</table>
			<div align="left">
				<p:commandButton id="editTaskCancelId" value="Annuler"
					oncomplete="editTacheWv.hide()" />
				<p:commandButton id="saveEditedTaskId" value="Enregistrer"
					oncomplete="editTacheWv.hide()"
					actionListener="#{activiteManagedBean.editTask}"
					update=":activiteFormId:tacheDataListId" />
			</div>
		</h:form>



</ui:composition>